<?php
namespace app\common\component\user;

use app\common\model\UserWalletLog as UserWalletLogModel;

class UserWalletLogService {
	public function create($data) {
		$userWalletLogModel = UserWalletLogModel::create($data);
		
		if($userWalletLogModel) {
			return [
				'code' => 0,
				'data' => ['user_wallet_log' => $userWalletLogModel]
			];
		}

		return [
			'code' => -1,
			'message' => '创建失败, user_wallet_log'
		];
	}
}
?>